package com.bm.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 短信发送日志表(TSmslog)实体类
 *
 * @author makejava
 * @since 2022-07-16 20:18:00
 */
@Data
@TableName(value = "t_smslog")
public class SmsLog {
    /**
     * 验证码id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 手机号*/
     private String phone ;
     /** 类型  1注册 2登录 3找回 4短信通知 */
    private Integer type ;
    /** 内容 */
    private String info ;
    /** 标记位 */
    private Integer flag ;
    /** 创建时间 */
    private Date ctime ;

    public SmsLog(String phone, Integer type, String info, Integer flag) {
        this.phone = phone;
        this.type = type;
        this.info = info;
        this.flag = flag;
        this.ctime=new Date();
    }
}

